import request from "@/api/request.js"

function findAllOrders() {
	return request({
		url: `/lejuClient/order/findAllOrders`,
		method: "get",
	})
}

function orderReturnApplys() {
	return request({
		url: `/lejuClient/orderReturn/orderReturnApplys`,
		method: "get",
	})
}

function cancelOrder(orderId) {
	return request({
		url: `/lejuClient/order/cancelOrder/${orderId}`,
		method: "post",
	})
}

function receiveDone(data) {
	return request({
		url: `/lejuClient/order/receiveDone`,
		method: "post",
		data
	})
}
function deleteOrder(orderId) {
	return request({
		url: `/lejuClient/order/deleteOrder/${orderId}`,
		method: "delete"
	})
}
function getCompanyAddrss() {
	return request({
		url: `/lejuClient/orderReturn/getCompanyAddrss`,
		method: "get"
	})
}
function addOrderReturnApply(data) {
	return request({
		url: `/lejuClient/orderReturn/addOrderReturnApply`,
		method: "post",
		data
	})
}
export {
	findAllOrders,
	orderReturnApplys,
	cancelOrder,
	receiveDone,
	deleteOrder,
	getCompanyAddrss,
	addOrderReturnApply
}
